package com.demo.demospringbootstarter.conf;

import com.demo.demospringbootstarter.business.SmsService;
import com.demo.demospringbootstarter.business.impl.AliCloudSmsServiceImpl;
import com.demo.demospringbootstarter.business.impl.TxCloudSmsServiceImpl;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class DemoConfigurationSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        System.out.println(TxCloudSmsServiceImpl.class.getName());
        return new String[]{
                DemoAutoConfiguration.class.getName(),

//                TxCloudSmsServiceImpl.class.getName(),
//                AliCloudSmsServiceImpl.class.getName(),
        };
    }
}
